package com.guigu.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.erp.dto.ManufactureDesignProcedureDetailsDto;
import com.guigu.erp.dto.ManufactureDesignProcedureModuleDto;
import com.guigu.erp.pojo.ManufactureDesignProcedure;
import com.guigu.erp.pojo.ManufactureDesignProcedureModule;

public interface ManufactureDesignProcedureModuleService extends IService<ManufactureDesignProcedureModule> {
    /**
     * 添加工序物料明细
     * @param dto
     * @return
     */
    boolean addProcessAndModule(ManufactureDesignProcedureDetailsDto dto);

    /**
     * 删除工序物料明细
     * @param dto
     * @return
     */
    boolean removeOperationItemDetails(ManufactureDesignProcedureModuleDto dto);

    /**
     * 如果工序设计单标志位位未通过，删除工序物料明细 修改工序明细设计位标志 物料总成本
     * @param procedure
     * @return
     */
    boolean removeProcedure(ManufactureDesignProcedure procedure);
}
